xen: arm: prevent building with CONFIG_EARLY_PRINTK if not a debug build
authorIan Campbell <ian.campbell@citrix.com>
Wed, 5 Mar 2014 01:02:29 +0000 (01:02 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 13 Mar 2014 10:56:25 +0000 (10:56 +0000)
early printk on ARM is tied to debug being enabled, so error out instead of silently and unexpectedly building without early printk when asked.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/Rules.mk

index aaa203ea7930760a4c6f6ace3952b528f88c665b..aa2e79fda550a1d97ce46087385f54430681f81f 100644 (file)
@@ -99,4 +99,12 @@ CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_INC=\"debug-$(EARLY_PRINTK_INC).inc\"
 CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_BAUD=$(EARLY_PRINTK_BAUD)
 CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_BASE_ADDRESS=$(EARLY_UART_BASE_ADDRESS)
 CFLAGS-$(EARLY_PRINTK) += -DEARLY_UART_REG_SHIFT=$(EARLY_UART_REG_SHIFT)
+
+else # !debug
+
+ifneq ($(CONFIG_EARLY_PRINTK),)
+# Early printk is dependant on a debug build.
+$(error CONFIG_EARLY_PRINTK enabled for non-debug build)
+endif
+
 endif